
<?php if(!defined('IN_PISCES')){exit('Access Denied.');}?>
{if $this->data['user']}
<div class="rc">
  <div class="login_div">
    <div class="login_head"> </div>
    <div class="login_right">
      <div class="login_body">
        <div id="login_body_div">
          <dl class="login_dl">
            <dt><img src="{$this->data[user]['logo']}" width="60" height="60" /></dt>
            <dd style="_margin-bottom:18px;">
              {$this->data['user']['username']}&nbsp;&nbsp;<a href="{url('User','Password')}">修改密码</a>
            </dd>
            {if $this->data['return']['rate']>0}
            <dd>
             帐户余额:&nbsp;<a target="_self" style="color: #0099cc;" href="{url('Return','Index')}">{$this->data['user']['money']}</a>元
            </dd>
            <dd>支付宝：&nbsp;{if $this->data['user']['alipay_account']}<a href="{url('User','AlipayAccount')}">我的支付宝账号</a>{else}<a href="{url('User','AlipayAccount')}">设置支付宝账号</a>{/if}
            </dd>
            {/if}
          </dl>
          <div class="clear"></div>
          <div class="l_desc">
          <a href="{url('Post','Edit')}" target="_self" style="color: #0099cc;">发表帖子</a>&nbsp;<a href="{url('Post','Product')}" target="_self" style="color: #0099cc;">分享商品</a>&nbsp;
            </div>
        </div>
      </div>
    </div>
    <div class="login_bottom"></div>
  </div>
</div>
{else}
<div class="rc">
  <div class="login_div">
    <div class="login_head"> </div>
    <div class="login_right">
      <div class="login_body">
        <div id="login_body_div">
          <dl class="login_dl">
            <dt>用户名：</dt>
            <dd style="_margin-bottom:18px;">
              <input id="txtUsername" name="username" value="" type="text" class="text">
            </dd>
            <dt>登录密码：</dt>
            <dd>
              <input type="password" class="text" id="txtPassword" name="password" maxlength="16">
              <input type="hidden" id="txtPassword" name="password" value="">
            </dd>
            <dd id="wrongTip"> </dd>
            <dt></dt>
            <dd>
              <input name="dologin" type="submit" value="" class="login_sub"  onclick="doLogin()">
              <input type="hidden" id="hdLoginUrl" value="{url('User','DoLogin')}" />
              <a href="#" onclick="document.location='{url('User','Setup')}'" target="_self" class="reg">注册为会员</a> <br>
              <span class="spInfo" id="spLoginInfo"></span></dd>
          </dl>
          <div class="l_desc"> 本站支持淘宝帐号注册登录.<br>
            <a href="#" onclick="document.location='{$this->data['taobaoLoginUrl']}'">使用淘宝帐号一键登录</a> </div>
          </form>
        </div>
      </div>
    </div>
    <div class="login_bottom"></div>
  </div>
</div>
{/if}